<%@ page language="java" contentType="text/html; charset=UTF-8" trimDirectiveWhitespaces="true"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include.inc.jsp"%>


<dwz:paginationForm action="${contextPath}/dict/list_dict" page="${page}" onsubmit="return navTabSearch(this)">
	<input type="hidden" name=search_LIKE_name value="${param.search_LIKE_name}"/>
</dwz:paginationForm>
<form method="post" action="${contextPath }/dict/list_dict" onsubmit="return navTabSearch(this)">
	<div class="pageHeader">
		<div class="searchBar">
			<ul class="searchContent">
				<li>
					<label>字典码：</label>
					<input type="text" name=search_LIKE_code value="${param.search_LIKE_code}"/>
				</li>
				<li>
					<label>字典值：</label>
					<input type="text" name=search_LIKE_name value="${param.search_LIKE_name}"/>
				</li>
			</ul>
			<div class="subBar">
				<ul>						
					<li><div class="button"><div class="buttonContent"><button type="submit">搜索</button></div></div></li>
				</ul>
			</div>
		</div>
	</div>
</form>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a iconClass="magnifier" rel="Role_navTab" target="navTab"   href="${contextPath}/dict/list_item/{slt_uid}"><span>字典项</span></a></li>
			<li><a iconClass="book_add" mask="true" target="dialog"  width="530" height="300"  href="${contextPath}/dict/createDict"><span>添加字典</span></a></li>
			<li><a iconClass="book_edit" target="dialog"  width="540" height="350" mask="true" href="${contextPath}/dict/editDict/{slt_uid}"><span>编辑字典</span></a></li>
			<li><a iconClass="book_delete" class="delete" target="selectedTodo" rel="ids"  title="删除字典将连字典项一起删除，确认要删除该字典吗?"   href="${contextPath}/dict/deleteDict"><span>删除字典</span></a></li>
		</ul>
	</div>
	<table class="table" layoutH="135" width="100%">
		<thead>
			<tr>
				<th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
				<th>字典码</th>
				<th>字典值</th>
				<th>备注</th>
				<th width="50">排序</th>
				<th width="30">操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="item" items="${dicts}">
			<tr target="slt_uid" rel="${item.id}">
				<td><input name="ids" value="${item.id}" type="checkbox"></td>
				<td>${item.code}</td>
				<td>${item.name}</td>
				<td>${item.remark}</td>
				<td>${item.priority}</td>
				<td>
					<a iconClass="book_open" rel="Role_navTab" target="navTab" title="查看字典项"  href="${contextPath}/dict/list_item/${item.id}">查看字典项</a>
					
				</td>
			</tr>
			</c:forEach>
		</tbody>
	</table>
	
	<!-- 分页 -->
	<dwz:pagination page="${page}" />

	
</div>